// 自动生成模板ShopGoods
package goods

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// 商品管理 结构体  ShopGoods
type ShopGoods struct {
	global.GVA_MODEL
	FileId       string   `json:"fileId" form:"fileId" gorm:"column:file_id;comment:商品图片;size:50;"`                   //商品图片
	GoodDesc     string   `json:"goodDesc" form:"goodDesc" gorm:"column:good_desc;comment:商品简介;size:255;"`            //商品简介
	GoodImage    string   `json:"goodImage" form:"goodImage" gorm:"column:good_image;comment:商品封面;size:0;"`           //商品封面
	GoodName     string   `json:"goodName" form:"goodName" gorm:"column:good_name;comment:商品名称;size:100;"`            //商品名称
	GoodPrice    *float64 `json:"goodPrice" form:"goodPrice" gorm:"column:good_price;comment:商品价格;size:10;"`          //商品价格
	ShopInvicate *int     `json:"shopInvicate" form:"shopInvicate" gorm:"column:shop_invicate;comment:商品库存;size:10;"` //商品库存
}

// TableName 商品管理 ShopGoods自定义表名 shop_goods
func (ShopGoods) TableName() string {
	return "shop_goods"
}
